package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.INCOMPLETE_FORMS;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.MotheryBean;
import com.uduew.sjd.bean.TheologistBean;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class FormListApi implements IRequestApi, IRequestType {

    private TheologistBean overripe;

    public FormListApi(String theologist) {
        this.overripe = new TheologistBean(theologist);
    }

    @NonNull
    @Override
    public String getApi() {
        return INCOMPLETE_FORMS;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }


    public static final class FormListBean {

        private String uniformitarian;
        private ArrayList<MotheryBean> mothery;

        public String getUniformitarian() {
            return uniformitarian;
        }

        public ArrayList<MotheryBean> getMothery() {
            return mothery;
        }

        @Override
        public String toString() {
            return "FormListBean{" +
                    "uniformitarian='" + uniformitarian + '\'' +
                    ", mothery=" + mothery.toString() +
                    '}';
        }
    }

}
